#include <stdio.h>
int main(int argc, char const *argv[])
{
    /* code */
    int age, height, sc, yz;
    printf("请输入参数：年龄、身高、身材（0-火辣，1-飞机场，2-普通）、颜值（0-漂亮，1-一般\n");
    scanf("%d %d %d %d", &age, &height, &sc, &yz);
    if (18 <= age <= 25 &&
        165 <= height <= 178 &&
        0 == sc &&
        0 == yz)
    {
        printf("恭喜你成为妃子！\n");
    }
    else if (18 <= age <= 30 &&
             160 <= height <= 165 &&
             (0 == sc || 2 == sc) &&
             1 == yz)
    {
        printf("恭喜你成为宫女！\n");
    }
    else if (35 <= age <= 40 &&
             155 <= height <= 165 &&
             (1 == sc || 2 == sc) &&
             1 == yz)
    {
        printf("恭喜你成为嬷嬷！\n");
    }
    else
    {
        printf("不好意思，你啥也不是，回家种田吧！\n");
    }
    return 0;
}
